import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SBargainShopRefreshItemsHelper } from "./SBargainShopRefreshItemsHelper";
type int = number;
//class SBargainShopRefreshResult
    
    export  class SBargainShopRefreshResult extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SBargainShopRefreshResult();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeInt(this.type);
            SBargainShopRefreshItemsHelper.write(arg1, this.items);
            arg1.writeDate(this.refreshDt);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.type = arg1.readInt();
            this.items = SBargainShopRefreshItemsHelper.read(arg1);
            this.refreshDt = arg1.readDate();
            return;
        }

        public /* const */_type: int=2054;

        public /* var */type: int;

        public /* var */items: Array<any>;

        public /* var */refreshDt: Date;

        public static /* var */_regist: SBargainShopRefreshResult;
    }

            SBargainShopRefreshResult._regist = new SBargainShopRefreshResult(true);
        